const routes = [
    {path: '/', redirect:'/page1'},
    { path: '/page1', component: Page1},
    { path: '/page2', component: Page2},
    { path: '/page3', component: Page3,
        children:[
            {
                path:'myForm',
                component:MyForm,
            }
        ]
    },
];